// Script assets have changed for v2.3.0 see
// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information
function BadShoting(bul){
if (instance_exists(o_Hero)){
var enem = instance_nearest(x,y,o_Hero);
		if (point_distance(x, y, enem.x , enem.y )<400){
			with (instance_create_layer(x,y,"bullets",bul)){
			direction = point_direction(x, y, enem.x , enem.y );
			speed = 10;
			};
		}
	}
}